import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginForm from '@/components/LoginForm.vue'
import HelloWorld from '@/components/HelloWorld.vue'
import ModelView from '@/components/ModelView.vue'
import MainCanvas from '@/components/MainCanvas.vue'
Vue.use(VueRouter)
Vue.component("LoginForm", LoginForm)
Vue.component("HelloWorld", HelloWorld)
Vue.component("MainCanvas", MainCanvas)

const routes = [
    {
        path: '/',
        name: 'login',
        component: LoginForm
      },
      {
        path: '/HelloWorld',
        name: 'HelloWorld',
        component: HelloWorld
      },
      {
        path:'/ModelView',
        name:'ModelVIew',
        component:ModelView
      }
]

const router = new VueRouter({
    mode: 'hash',
  routes
})

export default router

